package cn.mandy.sysadmin.dao;

import cn.mandy.sysadmin.dto.MyId;
import cn.mandy.sysadmin.model.MonitorTask;

import java.util.Date;
import java.util.List;

/**
 * Description :
 *
 * @author <a href= "mailto:342987890@qq.com">Winter</a>
 * create date: 2020/4/22 0022
 * project: sysadmin
 * @since
 */
public interface MonitorTaskDao {

    List<MyId> listAllChildrenTaskBefore(Long jobId, Date scheduleTime, Integer count);
    List<MyId> listAllChildrenTaskAfter(Long jobId, Date scheduleTime, Integer count);

    int createTaskNow(MonitorTask task);
    int redoTaskNow(MonitorTask task);
    int launchTaskRedoNow(Long taskId);

    Date getCurrentDate();

    List<MonitorTask> refreshTaskList(Long jobId, Long currentTaskId, Date beginTime, Date endTime);
    List<MonitorTask> refreshTaskGroupList(Long jobId, Long currentTaskId, Date beginTime, Date endTime);

}
